<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script src="./js/moment-with-locales.js"></script>
    <script>
      // moment.locale(String)
      moment.locale("zh-cn");
      console.log(moment.locale());

      console.log(moment().weekday(0));

      // 设置语言环境（局部）
      let myMoment = moment();
      myMoment.locale("ar-dz");
      console.log(myMoment.format("LLLL"));

      console.log(
        moment.months(),
        moment.monthsShort(),
        moment.weekdays(),
        moment.weekdaysShort(),
        moment.weekdaysMin()
      );

      console.log(moment.localeData());
    </script>
  </body>
</html>
